<%@page import="javax.mail.*"%>
<%@page import="classes.EmailConfirmation"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.Redirect"%>
<%@page import="classes.Customer"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Totalitea - Registration</title>
		<jsp:useBean id="registrationBean" class="beans.RegistrationBean" scope="page"></jsp:useBean>
		<jsp:useBean id="searchBean" class="beans.ProductBeanDAO" scope="page"></jsp:useBean>
		<jsp:useBean id="link" scope="application" class="classes.EmailConfirmation" /> 
		<meta name="tea" content="All the tea!">
		<link rel="stylesheet" href="main.css" type="text/css">
	</head>
	<body>
		<img class="banner" src="images/TotaliteaLogo.png">
        
        <ul class="navigationBar">
	        <li class="navigationBarList"><a id="activePage" class="navigationBarLink" href="index.jsp">Home</a></li>
	        <li class="navigationBarList"><a class="navigationBarLink" href="search.jsp">Search</a></li>
	        <li class="navigationBarList"><a class="navigationBarLink" href="basket.jsp">Basket</a></li>
	        <li class="navigationBarList"><a class="navigationBarLink" href="stockReport.jsp">Stock Report</a></li>
        </ul>
        
        <% 
        	EmailConfirmation mail =  new EmailConfirmation();
        	mail.setRecipient((String) request.getSession().getAttribute("emailAddress"));
        	mail.sendEmailConformation();
        %>
        
        <H1>Email Confirmation</H1>
        <p> An email has been sent to <b><%= mail.getRecipient() %></b> confirming your order. </p>
        
              

	</body>
</html>